import request from '@/utils/request.js'
// 获取系统中所有权限的列表数据
export const getAllPerAPI = () => request.get('/sys/permission')
// 添加权限
export const addPerAPI = obj => request.post('/sys/permission', obj)
// 获取权限详情(回显)
export const getPerAPI = id => request.get(`/sys/permission/${id}`)
// 更新权限
export const updatePerAPI = obj => request.put(`/sys/permission/${obj.id}`, obj)
// 删除权限
export const removePerAPI = id => request.delete(`/sys/permission/${id}`)
